import Router from "vue-router"


const router = new Router({
    routes: [
        {
            path:"/",
            component: ()=>import("../view/Home.vue"),
            redirect:"/user",
            children: [
                {
                    path: "user",
                    component: ()=>import("../view/home/User.vue")
                },
                {
                    path:"about/version",
                    component:()=>import("../view/about/version.vue")
                },
                {
                    path:"/error",
                    component:()=>import("../view/error/error.vue")
                }
            ]
        },
    ]
})

export default router

